// 团队的请求

import { httpGet, httpPost, httpPut, httpDelete } from "../utils/http"

// 查询团队
export const searchTeamsApi = (data) => {
    return httpPost('/teams/search', data)
}
// 新增团队
export const addTeamsApi = (data) => {
    return httpPost('/teams/add', data)
}
// 修改团队 
export const updateTeamsApi = (data) => {
    return httpPut('/teams/update', data)
}
// 删除/解散团队 
export const removeTeamsApi = (data) => {
    return httpDelete('/teams/remove', data)
}
// 获取一个团队详情 
export const detailTeamsApi = (data) => {
    return httpGet('/teams/detail', data)
}
// 退出团队
export const dropoutTeamsApi = (data) => {
    return httpPut('/teams/dropout', data)
}

// 团队申请管理

// 申请加入团队 
export const addTeamApplyApi = (data) => {
    return httpPost('/teamApply/add', data)
}
// 获取入队申请
export const GetTeamApplyApi = (data) => {
    return httpGet('/teamApply', data)
}
// 处理入队申请 
export const UpdateTeamApplyApi = (data) => {
    return httpPut('/teamApply/update', data)
}